Skip to content

chore(deps): update dependency @ngx-translate/core to v18#2163

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ngx-translate-core-18.x
Open

chore(deps): update dependency @ngx-translate/core to v18#2163
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ngx-translate-core-18.x

Conversation

@renovate

@renovate renovate Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@ngx-translate/core 17.0.018.0.0 age confidence
@ngx-translate/core 16 - 1716 - 18 age confidence
@ngx-translate/core 16.0.418.0.0 age confidence

Release Notes

ngx-translate/core (@​ngx-translate/core)

v18.0.0

Compare Source

@ngx-translate/core@18.0.0 and @ngx-translate/http-loader@18.0.0 are now stable on npm (latest).

v18 is the major API-cleanup release: standalone providers everywhere, signal-based internals, the defaultfallback rename finalized, and the deprecated surface removed. It also resolves three long-standing semantic gotchas and baselines the workspace on Angular 22 / TypeScript 6.0.

Highlights

  • Standalone-first setup. TranslateModule is gone — use provideTranslateService() / provideChildTranslateService() (works in standalone and NgModule apps).
  • New *translateBlock="let t" structural directive for cleaner template translations.
  • New isLoading: Signal<boolean> — true while any use() load is in flight; read it for language-switching spinners.
  • Isolated subtrees are now truly isolated — own events, lookups, and language state.
  • Angular 18–22 supported (16 and 17 dropped); built and tested against Angular 18/19/20/21/22.

Breaking changes — required edits

TranslateModule removed. Replace TranslateModule.forRoot({...}) / forChild({...}) with provideTranslateService({...}) / provideChildTranslateService({...}). The pipe, directive, and service are standalone.

Deprecated default* symbols removed — rename:

Removed Replacement
defaultLang fallbackLang
setDefaultLang() setFallbackLang()
getDefaultLang() getFallbackLang()
onDefaultLangChange onFallbackLangChange
DefaultLangChangeEvent FallbackLangChangeEvent
langs getLangs()
setValue() (util) insertValue()

Also removed: useDefaultLang and defaultLanguage config fields (along with TranslateModule).

Deprecated (still works, warns once): using element text content as a key (<span translate>Hello</span>). Use [translate]="'KEY'", the translate pipe, or *translateBlock. It will be removed next major.

Potentially breaking — low impact (behavior changes)

  • A failed use() no longer mutates state. On loader failure, currentLang() / lastUseLanguage stay at the prior value instead of switching to the failed language. Use isLoading() or the returned Observable's error channel to drive switching UI.
  • Isolated subtrees no longer see ancestor translationChange$ events, nor borrow keys from outer scopes. Isolation now means own events + own lookups + own language state. If you wanted shared translations with subtree-scoped state, use provideChildTranslateService({ extend: true }).
  • instant() "unloaded language" warning is deduplicated per isolated subtree (was once per service instance).
  • ITranslateService gains isLoading: Signal<boolean>. If you mock it via implements/extends ITranslateService, add isLoading = signal(false).asReadonly(). See the "Mocking TranslateService" recipe in the README.
  • Loader errors are now logged instead of silently swallowed.

Migration

Full step-by-step guide: https://ngx-translate.org → Getting Started → Migration Guide.


Angular compatibility: 18, 19, 20, 21, 22 · TypeScript: 6.0 · RxJS: ≥7


Configuration

📅 Schedule: (in timezone Etc/UTC)

  • Branch creation
    • "before 7am on Wednesday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@renovate renovate Bot added the dep-bump label Jun 17, 2026
@renovate renovate Bot requested review from a team as code owners June 17, 2026 00:59
@spike-rabbit spike-rabbit added the breaking-changes Marks issues and PRs that are breaking the API label Jun 17, 2026
@spike-rabbit spike-rabbit added this to the 51.0.0 milestone Jun 17, 2026
@spliffone spliffone force-pushed the renovate/ngx-translate-core-18.x branch from c175e86 to 001e3ba Compare June 22, 2026 14:11
@renovate renovate Bot force-pushed the renovate/ngx-translate-core-18.x branch from 001e3ba to 022cf74 Compare June 22, 2026 14:18
@spliffone spliffone force-pushed the renovate/ngx-translate-core-18.x branch from 022cf74 to 338555c Compare June 22, 2026 16:21
@renovate

renovate Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@spliffone spliffone force-pushed the renovate/ngx-translate-core-18.x branch 5 times, most recently from b4faf76 to 8817b74 Compare June 23, 2026 10:10
@spliffone spliffone force-pushed the renovate/ngx-translate-core-18.x branch from 8817b74 to e902339 Compare June 23, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-changes Marks issues and PRs that are breaking the API dep-bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants